package com.admin.dbdao;

import com.data.dbdao.BaseDao;
import org.springframework.stereotype.Repository;

import javax.transaction.Transactional;
import java.util.List;

/**
 * 会员管理
 *
 * @author:HingLo
 * @create 2017-08-31 9:32
 **/
@Repository
@Transactional
public class MemberAdminDao extends BaseDao {

    public List<?> findMemberDao(int types) {
        String hql = "from Account where types=?";
        return super.findMassageDao(hql, types);
    }

    public boolean deleteMemberDao(String id) {
        String hql = "delete Account where id=?";
        return super.updateManyMssageDao(hql, id) > 0;
    }
}
